package it.yuzuojian.com.service.impl;

import it.yuzuojian.com.javaBean.Comment1;
import it.yuzuojian.com.mapper.Comment1Mapper;
import it.yuzuojian.com.service.Comment1Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class Comment1ServiceImpl implements Comment1Service {
    @Autowired
    private Comment1Mapper comment1Mapper;
    @Override
    public List<Comment1> findByArticleId(Integer articleId) {
        return comment1Mapper.findByArticleId(articleId);
    }

    @Override
    public void add(Comment1 comment1) {
        comment1Mapper.add(comment1);
    }
}
